﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CommandLine;
using Vroom.Common;
using Vroom.Common.Enums;

namespace Vroom.Bootstrap
{
    public class InputArgs : IInputArgs
    {
        [Option('s', "source", Required = false, HelpText = "ValidSourceSystem", DefaultValue=SourceSystem.AL)]
        public SourceSystem SourceSystem { get; set; }

        [Option('v', null, HelpText = "Print details during execution.")]
        public bool Verbose { get; set; }

        [HelpOption('h')]
        public string GetUsage()
        {
            var usage = new StringBuilder();
            usage.AppendLine("Vroom.exe has been called with incorrect parameters.");
            usage.AppendLine("Invoke as following: Vroom.exe [-s|--source] <ValidSourceSystem>");
            return usage.ToString();
        }    
    }
}
